package com.tourlaid.mamagerment.action.wx

import com.tourlaid.mamagerment.ao.wx.HomeAo
import com.tourlaid.mamagerment.entity.ResponseData
import com.tourlaid.mamagerment.vo.HomeVo
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.annotation.Resource

/**
 * Created by xiaoyongge on 2017/7/23.
 * 首页
 */
@RestController
@RequestMapping("/tld/admin/home")
class HomeAction {

    @Resource
    var homeAo: HomeAo? = null

    @RequestMapping("/queryData.json")
    fun queryData(userId: Long, pageNo: Int): ResponseData<MutableList<MutableList<HomeVo>>> {
        val responseData = homeAo!!.queryData(userId, pageNo);
        return responseData
    }

}